<template>
  <div v-loading="global_setting.loading" id="app">
    <router-view/>
  </div>
</template>
<script>
import { provide, computed, defineComponent,ref,toRefs,onMounted,reactive,watch,getCurrentInstance } from 'vue'
import { mapState, mapMutations } from "vuex";
import {clickStore} from "./store/click.js";

export default defineComponent({

  setup(){
    const global_setting = reactive({loading:false})
    provide("global_setting",global_setting)

    const onCount = () => {
      clickStore.incrementCount()
    }

    return{
      global_setting,
      onCount
    }
  }
})

</script>
